﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using DapperExtensions.Mapper;
namespace LS.Entitys
{
    /// <summary>
    /// 登录日志管理
    /// </summary>
    [Table("sys_operatelog")]
    public class SysOperateLogEntity : EntityBaseDate
    {
        /// <summary>
        /// 控制器
        /// <summary>
        public string ControllerName { get; set; }

        /// <summary>
        /// 方法
        /// <summary>
        public string ActionName { get; set; }

        /// <summary>
        ///参数
        /// <summary>
        public string Parameter { get; set; }

        /// <summary>
        /// 状态 0=成功 1=失败
        /// <summary>
        public int OperateState { get; set; }

        /// <summary>
        /// 错误消息
        /// <summary>
        public string OperateMsg { get; set; }

        /// <summary>
        /// 消耗时间 毫秒
        /// </summary>
        public long ConsumedTime { get; set; }

        /// <summary>
        /// 操作IP
        /// </summary>
        public string OperateIp { get; set; }
    }
    public class SysOperateLogEntityMapper : ClassMapper<SysOperateLogEntity>
    {
        public SysOperateLogEntityMapper()
        {
            Table("sys_operatelog");
            AutoMap();
        }
    }
}
